<!doctype html>
<html lang="en" class="orange-theme">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover, user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="Maxartkiller">

    <title>首页 ·辰星中文网</title>

    <!-- iconfont CSS -->
    <link rel="stylesheet" href="/static/mobile/vendor/iconfont/iconfont.css">

    <!-- Roboto fonts CSS -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">

    <!-- Bootstrap core CSS -->
    <link href="/static/mobile/vendor/bootstrap-4.3.1/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/static/mobile/css/style.css" rel="stylesheet">
</head>

<body>
<div class="wrapper">

    <div class="header">
        <div class="row no-gutters">
            <div class="col-auto">
                <a href="javascript:history.go(-1)" class="btn btn-link text-dark"><i class="iconfont icon-back"></i></a>
            </div>
            <div class="col text-left header-title">{$name}</div>

        </div>
    </div>

    <div class="container">
        <input type="text" class="form-control form-control-sm my-2 search" placeholder="书名 作者名">

        <div class="list-content">
            <!--<h6 class="subtitle">精品推荐<a href="all-products.html" class="float-right small text-secondary">更多</a></h6>-->
            <div class="d-flex justify-content-between flex-wrap">
                {volist name="data" id="book"}
                <a href="/mobile/book/bookInfo/id/{$book.id}" class="w-30">
                    <div class="card shadow-sm border-0 mb-4">
                        <img class="w-100" src="{$book.cover}" alt="...">
                        <div class="card-body">
                            <h6 class="text-overflow-elli">{$book.name}</h6>
                            <p class="text-secondary small mb-2">{$book.author}</p>
                        </div>
                    </div>
                </a>
                {/volist}
            </div>
        </div>

    </div>
</div>


<!-- jquery, popper and bootstrap js -->
<script src="/static/mobile/js/jquery-3.3.1.min.js"></script>
<script src="/static/mobile/vendor/bootstrap-4.3.1/js/bootstrap.min.js"></script>

<!-- template custom js -->
<script src="/static/mobile/js/main.js"></script>

<!-- page level script -->
<script>
    $(window).on('load', function() {
        $('#main-banner').carousel({
            interval: 3000
        })
    });
</script>

<script>
    $('.search').click(function(){
        window.location.href="/mobile/search/index";
    })
</script>
</body>

</html>
